package com.yale.spring.cloud.commons;

public enum OpenResponseCode {

    SUCCESS(200,"处理成功"),
    FAILED(201,"处理失败"),
    VERIFY_FAILED(1000,"验证码错误"),
    REGISTRY_TOO_FREQUENTLY(303,"您频繁进⾏注册，请求已被拒绝"),
    SEND_SUCCESS(1001,"验证码发送成功");

    private int code;

    private String description;

    OpenResponseCode(int code,String description){
        this.code=code;
        this.description=description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
